package com.xueyi.aixihu.entity.vo;

import com.xueyi.aixihu.entity.po.AxhFinance;
import com.xueyi.aixihu.status.IsStatus;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 描述 报表的DetailVO
 *
 * @author yuye
 * @author 俞烨
 * @date 2022-08-22 10
 */
@Data
public class FinanceDetailVo {


    private Btn btn;

    /**
     * 审核的进度
     */
    private List<AxhAuditFinanceLogVo> axhAuditFinanceLogVos;
    /**
     * 报表的信息
     */
    private AxhFinance axhFinance;
    /**
     * 当前报表的状态
     */
    private Integer financeStatus;
    /**
     * 是否可以转换成草稿
     */
    private Integer convertToDraft = IsStatus.NO;
    private String financeStatusStr;
    /**
     * 驳回的原因
     */
    private String turnDownMsg;
    /**
     * 具体的内容
     */
    private List<FinanceReport> financeReports;
    private List<FinanceReport> financeReportsType2;

    private Integer pzSize;


    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class FinanceReport {
        private FinanceReportBase parentBase;
        private List<FinanceReport> children;

        public FinanceReport(FinanceReportBase parentBase) {
            this.parentBase = parentBase;
        }
    }

    @Data
    public static class Btn {
        private Integer isSubmit = 0;
        private Integer isSave = 0;
        private Integer isDel = 0;
        private Integer isCaoGao = 0;
        private Integer isSuccess = 0;
        private Integer isTurn = 0;
    }
}
